package com.xinke.module.system.model.vo.logger;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 操作日志记录 V2 版本 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OperateLogRespVO {

    @Schema(description = "日志主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29410")
    @ExcelProperty("日志主键")
    private Long logId;

    @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23207")
    @ExcelProperty("链路追踪编号")
    private String traceId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30912")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "操作模块类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("操作模块类型")
    private String operateType;

    @Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("操作名")
    private String operateName;

    @Schema(description = "操作数据模块编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17715")
    @ExcelProperty("操作数据模块编号")
    private Long bizId;

    @Schema(description = "操作内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("操作内容")
    private String operateContent;

    @Schema(description = "操作结果", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("操作结果")
    private Integer operateSuccess;

    @Schema(description = "拓展字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("拓展字段")
    private String operateExtra;

    @Schema(description = "请求方法名")
    @ExcelProperty("请求方法名")
    private String requestMethod;

    @Schema(description = "请求地址", example = "https://www.iocoder.cn")
    @ExcelProperty("请求地址")
    private String requestUrl;

    @Schema(description = "用户 IP")
    @ExcelProperty("用户 IP")
    private String userIp;

    @Schema(description = "浏览器 UA")
    @ExcelProperty("浏览器 UA")
    private String userAgent;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}